package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Attention;
import cn.wolfcode.trip.base.query.AttentionQueryObject;

import java.util.List;
import java.util.Map;

public interface IAttentionService {
    /**
     * 为用户增加一条关注
     * @param attention
     */
    void save(Attention attention);

    /**
     * 根据用户id查询对应所有的关注数以及粉丝数
     * @param qo
     * @return
     */
    public Map getAttentionsAndFansCountById(AttentionQueryObject qo);

    /**
     * 判断用户是否具有某个粉丝id
     * @param qo
     * @return
     */
    boolean isAttentioin(AttentionQueryObject qo);

    /**
     * 删除用户的粉丝
     * @param attention
     */
    void delete(Attention attention);
}